<?php 
	include ("../../config/koneksi.php");
	$q = "select * from master_elektromedik";
	$r = mysql_query($q);
	
	$content = "NO;NAMA TINDAKAN ELEKTROMEDIK\n";
	while ($data = mysql_fetch_array($r)) {
		$no++;
		$content .= "$no;$data[nama_elektromedik]\n";
	};

	header("Content-type: text/csv");
	header("Content-Disposition: attachment; filename=master_elektromedik.csv");
	header("Pragma: no-cache");
	header("Expires: 0");
	echo $content;
?>